/**
 * 表格类型
 */
import type { TableBaseColumn } from 'naive-ui/lib/data-table/src/interface'

export interface BasicColumn extends TableBaseColumn {
  key: string;
  title: string;
  query: boolean;
  show: boolean;
}

export interface TableActionType {
  reload: (opt: any) => Promise<void>;
  emit?: any;
  getColumns: (opt?: any) => BasicColumn[];
  setColumns: (columns: BasicColumn[] | string[]) => void;
}

export interface BasicTableProps {
  title?: string;
  dataSource: Function;
  columns: BasicColumn[];
  pagination: object;
  showPagination: boolean;
  actionColumn: any[];
}
